package vp.remedies.dr.home.allmain.remedy.activity;

import vp.remedies.dr.home.R;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class NutrientsPropertiesActivity extends Activity {

	public static final String NUTRIENTS = "nutrients";
	public static final String PROPERTIES = "properties";
	public static final String GOOD_FOR = "goodFor";
	public static final String BAD_FOR = "badFor";
	public static final String FOOD_IMAGE_NAME = "imageName";
	public static final String FOOD_NAME = "foodName";

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.nutrients_properties_details);

		String foodNameString = (String) getIntent().getExtras().get(FOOD_NAME);
		String nutrientsString = (String) getIntent().getExtras()
				.get(NUTRIENTS);
		String propertiesString = (String) getIntent().getExtras().get(
				PROPERTIES);
		String goodForString = (String) getIntent().getExtras().get(GOOD_FOR);
		String badForString = (String) getIntent().getExtras().get(BAD_FOR);
		
		String imageNameString = (String) getIntent().getExtras().get(
				FOOD_IMAGE_NAME);

		TextView foodNameTextView = (TextView) findViewById(R.id.foodName);
		foodNameTextView.setText(foodNameString);

		TextView goodForlbl = (TextView) findViewById(R.id.goodForlbl);
		// goodForlbl.setText(goodForString);
		TextView goodForValue = (TextView) findViewById(R.id.goodForValue);
		goodForValue.setText(goodForString);
		
		/*TextView badForlbl = (TextView) findViewById(R.id.badForlbl);
		// goodForlbl.setText(goodForString);
		TextView badForValue = (TextView) findViewById(R.id.badForValue);
		badForValue.setText(badForString);
*/
		TextView propertieslbl = (TextView) findViewById(R.id.propertieslbl);
		// propertieslbl.setText(goodForString);
		TextView propertiesValue = (TextView) findViewById(R.id.propertiesValue);
		propertiesValue.setText(propertiesString);

		TextView nutrientslbl = (TextView) findViewById(R.id.nutrientslbl);
		// nutrientslbl.setText(propertiesString);
		TextView nutrientsValue = (TextView) findViewById(R.id.nutrientsValue);
		nutrientsValue.setText(nutrientsString);

		/*if (imageNameString != null && imageNameString.trim().equals("")) {

			ImageView imageView = (ImageView) findViewById(R.id.foodImage);
			int resId = getResources().getIdentifier(imageNameString,
					"drawable", getPackageName());
			imageView.setImageResource(resId);
		}*/

	}
}